package com.matt.repository.courseV2;

import com.matt.domain.courseV2.CourseTool;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface CourseToolRepository extends JpaRepository<CourseTool, String>, JpaSpecificationExecutor<CourseTool> {

    CourseTool findByTitle(String title);

    List<CourseTool> findByIdIn(String[] ids);

    List<CourseTool> findByParentId(String  parentId);
}